package com.j2eefast.flowable.bpm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 项目报备申请表
 * bpm_bid_reports
 * @author: summer
 * @date 2021-06-03 16:28
 */
@Data
@TableName("bpm_bid_reports")
public class BpmBidReportsEntity extends BaseEntity{

    /** 主键 */
    @TableId(value = "id",type = IdType.INPUT)
    private String id;

    /**流程实例ID*/
    @TableField(value = "process_instance_id")
    private String processInstanceId;

    /** 标题 */
    @TableField(value = "title")
    private String title;

    /** 优先级 */
    @TableField(value = "priority")
    private String priority;

    /** 附言文本 */
    @TableField(value = "attachment_text")
    private String attachmentText;

    /** 附言链接，废弃 */
    @TableField(value = "attachment_url")
    private String attachmentUrl;

    /** 流程表单ID */
    @TableField(value = "form_id")
    private String formId;



    /** 项目ID */
    @TableField(value = "project_id")
    private String projectId;

    /** 项目经理 */
    @TableField(value = "project_admin")
    private String projectAdmin; //项目经理

    /** 项目所属部门 */
    @TableField(value = "project_dept")
    private String projectDept;  //项目所属部门

    /** 项目名称 */
    @TableField(value = "project_name")
    private String projectName; //项目名称


    /** 处理意见 */
    @TableField(value = "opinion")
    private String opinion; //处理意见

    /** 状态，目前没有什么用 */
    @TableField(value = "status")
    private String status = "0";

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date updateTime;

    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createTime;

    /** 备注 */
    @TableField(value = "remark")
    private String remark;

    /** 所有者ID */
    @TableField(value = "user_id")
    private String userId;

    @TableField(exist = false)
    private String formName;

    @TableField(value = "model_key")
    private String modelKey;

    @TableField(value = "type")
    private String type;

    /** 发起部门 */
    @TableField(value = "department")
    private String department;
    /** 合同甲方 */
    @TableField(value = "department_party")
    private String departmentParty;
    /** 建设单位 */
    @TableField(value = "build_unit")
    private String buildUnit;
    /** 合同内容 */
    @TableField(value = "contract_content")
    private String contractContent;
    /** 合同编号 */
    @TableField(value = "contract_code")
    private String contractCode;
    /** 合同附件 */
    @TableField(value = "contract_url")
    private String contractUrl;
    /** 合同状态 */
    @TableField(value = "project_status")
    private String projectStatus;

    /** 项目地址 */
    @TableField(value = "address")
    private String address;
    /** 发起人 */
    @TableField(value = "launch_name")
    private String launchName;

    /** 发起人 */
    @TableField(value = "launch_department")
    private String launchDepartment;

//    /** 合同状态 */
//    @TableField(value = "contract_remarks")
//    private String contract_remarks;






}
